<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>Danh sách các khảo sát</title>
	
	<!-- Load main style css -->
	<%@ include file="../include-file/main-style.jsp" %>
	
</head>
<body>
	<div class="main-content">
		<!-- Menu bar -->
		<%@ include file="../include-file/header-menu.jsp" %>
		<div class="body-content">
			<div class="top-right-button">
				<a href="./camp-list" class="btn btn-primary"><div class="button-box">Danh sách chiến dịch</div></a>
				<br>
				<br>
				<a href="./survey-create?campId=${model.campaign.campId}" class="btn btn-success"><div class="button-box">Tạo khảo sát mới</div></a>
			</div>
			<div class="title-text">
				<h3>Các chiến dịch</h3>
			</div>
			<div class="list-item">
				<ul>
					
					<c:forEach var="survey" items="${model.surveyList}">
						<li>${survey.name}
							<ul class="sub-list">
								<li class="btn btn-warning"><a style="color:white" href="./answer-survey?surveyId=${survey.surveyId }">Trả lời</a></li>
								<li class="btn btn-info"><a style="color:white" href="./survey-statistic?surveyId=${survey.surveyId }">Thống kê</a></li>
								
							</ul>
						</li>
					</c:forEach>
				
					
				</ul>
			</div>
		</div>
	</div>
	
	<%@ include file="../include-file/footer-script.jsp" %>
	
</body>
</html>